<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>success</title>
</head>
<body>
<h1>这是一个由后端做的成功跳转页面</h1>
<h1>它有点丑</h1>
<h1>但是<span id="time"><?php echo $time;?></span>秒之后你就看不到它了</h1>
<h2>成功信息：<?php echo $msg;?></h2>
</body>
<style>
    h1 h2 {

    }
</style>
<script>
    var time = <?php echo $time - 1;?>;
    var timeHtml = document.getElementById('time');

    function repl() {
        setInterval(function () {
            if (time < 0)
                window.location.replace('<?php echo $src;?>');
            if (time >= 0) {
                timeHtml.innerText = time;
                time--;
            }
        }, 1000);
    }
    repl();
</script>
</html>